<%@ page language="java" import="java.util.*" %>
<%@ page import="org.gatorojo.model.Product" %>

<%
	String contextPath = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + contextPath +"/";
%>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>Delete Product</title>
		<link rel="stylesheet" href="<%=contextPath%>/view/css/gatorojo.css" type="text/css" media="screen"/>		
		<script type="text/javascript" src="<%=contextPath%>/view/js/jquery-1.4.2.min.js" charset="utf-8"></script>
		<script type="text/javascript" charset="utf-8">
			var $jq = jQuery.noConflict();
		</script>
	</head>
	<body>
		<div id="banner">
			<center>
				<img src="<%=contextPath%>/view/images/gatoRojo.jpg" width="120" height="120"/><h1>Product Store</h1>			
			</center>
		</div>
		<div>
			Are you sure you want to delete this product with code <b><%out.print(request.getParameter("productCode"));%></b>?
			<form name="confirmDeleteProductForm" action="GatoRojo" method="get">
				<input type="hidden" name="action" value="DELETE" />
				<input type="hidden" name="productCode" value="<%out.print(request.getParameter("productCode"));%>"/>
				<input type="submit" value="Yes"/>
			</form>		
			<form name="cancelDeleteProductForm" action="GatoRojo" method="get">
				<input type="hidden" name="action" value="CANCEL_DELETE" />
				<input type="submit" value="No" />
			</form>
		</div>		
	</body>
</html>